package grape.composite.rest.subway.mapper;

import grape.composite.rest.subway.form.SubwayStationListForm;
import grape.composite.service.subway.po.SubwayStation;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.subway.form.SubwayStationCreateForm;
import grape.composite.rest.subway.form.SubwayStationUpdateForm;
import grape.composite.rest.subway.form.SubwayStationListPageForm;
import grape.composite.rest.subway.vo.SubwayStationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 地铁站点表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SubwayStationWebMapper extends WebMapper<SubwayStationVo, SubwayStation> {

    SubwayStation formToPo(SubwayStationCreateForm f);
    SubwayStation formToPo(SubwayStationUpdateForm f);
    SubwayStation formToPo(SubwayStationListPageForm f);
    SubwayStation formToPo(SubwayStationListForm f);
}
